<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>{block name="site_title"}商户平台{/block} - {$site.seo_title|default="X支付"} - 支付技术服务商，让支付简单、专业、快捷</title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <!-- plugins:css -->
    <link rel="stylesheet" href="__CLOUD__/vendors/iconfonts/simple-line-icon/css/simple-line-icons.css">
    <link rel="stylesheet" href="__CLOUD__/vendors/iconfonts/flag-icon-css/css/flag-icon.min.css">
    <link rel="stylesheet" href="__CLOUD__/vendors/css/vendor.bundle.base.css">
    <link rel="stylesheet" href="__CLOUD__/vendors/css/vendor.bundle.addons.css">
    <!-- endinject -->
    <!-- plugin css for this page -->
    {block name="pagecss"}
    <!-- plugin css for this page -->
    <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
    <!-- End plugin css for this page -->
    {/block}
    <!-- End plugin css for this page -->
    <!-- inject:css -->
    <link rel="stylesheet" href="__CLOUD__/css/style.css">
    <!-- endinject -->
</head>

<body>
<div class="container-scroller">
    <!-- partial:partials/_horizontal-navbar.html -->
    <nav class="navbar horizontal-layout col-lg-12 col-12 p-0">
        <div class="nav-top flex-grow-1">
            <div class="container d-flex flex-row h-100 align-items-center">
                <div class="text-center navbar-brand-wrapper d-flex align-items-center">
                    <a class="navbar-brand brand-logo" href="/">
                        <img src="__COMMON__/logo.png" alt="logo"/>
                    </a>
                    <a class="navbar-brand brand-logo-mini" href="/">
                        <img src="__COMMON__/logo-mini.png" alt="logo"/>
                    </a>
                </div>
                <div class="navbar-menu-wrapper d-flex align-items-center justify-content-between flex-grow-1">
                    <!--<form class="search-field d-none d-md-flex" action="#">-->
                        <!--<div class="form-group mb-0">-->
                            <!--<div class="input-group">-->
                                <!--<div class="input-group-prepend">-->
                                    <!--<span class="input-group-text"><i class="icon-magnifier"></i></span>-->
                                <!--</div>-->
                                <!--<input type="text" class="form-control" placeholder="全局搜索...">-->
                            <!--</div>-->
                        <!--</div>-->
                    <!--</form>-->
                    <ul class="navbar-nav navbar-nav-right mr-0 ml-auto">
                        <!-- <li class="nav-item">
                            <a class="nav-link count-indicator" href="{:url('index/User/notice',['id' => 1])}">
                                <i class="icon-bell"></i>
                                <span class="count"></span>
                                通知公告
                            </a>
                        </li> -->
                        <li class="nav-item nav-profile dropdown">
                            <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" id="profileDropdown">
                                <img src="http://q1.qlogo.cn/g?b=qq&nk={$user_info.qq|default='1078509454'}&s=100" alt="profile"/>
                                <span class="nav-profile-name">{$user_info.username|default='Me@xx.cn'}</span>
                            </a>
                            <div class="dropdown-menu dropdown-menu-right navbar-dropdown" aria-labelledby="profileDropdown">
                                <a class="dropdown-item" href="{:url('index/User/info')}">
                                    <i class="icon-user text-primary mr-2"></i>
                                    个人资料
                                </a>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="{:url('index/Login/logout')}">
                                    <i class="icon-logout text-primary mr-2"></i>
                                    退出
                                </a>
                            </div>
                        </li>
                    </ul>
                    <button class="navbar-toggler align-self-center" type="button" data-toggle="minimize">
                        <span class="icon-menu text-light"></span>
                    </button>
                </div>
            </div>
        </div>
        <!-- nav-item -->
        <div class="nav-bottom">
            <div class="container">
                <ul class="nav page-navigation">
                    <li class="nav-item">
                        <a href="{:url('index/User/index')}" class="nav-link">
                            <i class="link-icon icon-screen-desktop"></i>
                            <span class="menu-title">控制台</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            <i class="link-icon icon-user"></i>
                            <span class="menu-title">个人信息</span>
                            <i class="menu-arrow"></i>
                        </a>
                        <div class="submenu">
                            <ul class="submenu-item">
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/User/info')}">基本资料</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/User/auth')}">认证信息</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/User/password')}">密码修改</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/User/cashpwd')}">提现密码</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/User/log')}">账户日志</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            <i class="link-icon icon-wallet"></i>
                            <span class="menu-title">资金</span>
                            <i class="menu-arrow"></i>
                        </a>
                        <div class="submenu">
                            <ul class="submenu-item">
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Balance/index')}">明细</a>
                                </li>
                                <!--<li class="nav-item">-->
                                    <!--<a class="nav-link" href="{:url('index/Balance/account')}">收款账户</a>-->
                                <!--</li>-->
                                <!--<li class="nav-item">-->
                                    <!--<a class="nav-link" href="{:url('index/Balance/paid')}">收款记录</a>-->
                                <!--</li>-->
                                <!--<li class="nav-item">-->
                                    <!--<a class="nav-link" href="{:url('index/Balance/apply')}">提现管理</a>-->
                                <!--</li>-->
                                <!-- <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Balance/charge')}">充值</a>
                                </li> -->
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Balance/withdraw')}">提现</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Balance/settlement')}">结算</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            <i class="link-icon icon-docs"></i>
                            <span class="menu-title">订单管理</span>
                            <i class="menu-arrow"></i>
                        </a>
                        <div class="submenu">
                            <ul class="submenu-item">
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Order/index')}">交易记录</a>
                                </li>
                                <!-- <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Order/refund')}">退款记录</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Order/submit')}">补单提交</a>
                                </li> -->
                            </ul>
                        </div>
                    </li>
                    <!-- {if $user_info.is_agent}
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            <i class="link-icon icon-people"></i>
                            <span class="menu-title">代理管理</span>
                            <i class="menu-arrow"></i>
                        </a>
                        <div class="submenu">
                            <ul class="submenu-item">
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Agent/index')}">下级商户</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Agent/orders')}">交易记录</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Agent/profit')}">分润设置</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                    {/if} -->
                    <li class="nav-item">
                        <a href="#" class="nav-link">
                            <i class="link-icon icon-disc"></i>
                            <span class="menu-title">接口管理</span>
                            <i class="menu-arrow"></i>
                        </a>
                        <div class="submenu">
                            <ul class="submenu-item">
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Api/index')}">接口信息</a>
                                </li>
                                <!-- <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Api/channel')}">可用渠道</a>
                                </li> -->
                                <li class="nav-item">
                                    <a class="nav-link" href="{:url('index/Api/document')}">接口文档</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                    <!-- <li class="nav-item">
                        <a href="{:url('index/User/faq')}" class="nav-link">
                            <i class="link-icon icon-docs"></i>
                            <span class="menu-title">常见问题</span>
                        </a>
                    </li> -->
                </ul>
            </div>
        </div>
    </nav>
    <!-- partial -->
    <div class="container-fluid page-body-wrapper">
        <div class="main-panel">
            {block name="content"}
            <div class="content-wrapper">
                <div class="row">

                </div>
            </div>
            {/block}
            <!-- content-wrapper ends -->
            <!-- partial:partials/_footer.html -->
            <footer class="footer">
                <div class="w-100 clearfix">
                    <span class="text-muted d-block text-center text-sm-left d-sm-inline-block"> © 2019 All rights reserved.</span>
                </div>
            </footer>
            <!-- partial -->
        </div>
        <!-- main-panel ends -->
    </div>
    <!-- page-body-wrapper ends -->

</div>
<!-- container-scroller -->


<!-- plugins:js -->
<script src="__CLOUD__/vendors/js/vendor.bundle.base.js"></script>
<script src="__CLOUD__/vendors/js/vendor.bundle.addons.js"></script>
<!-- endplugins -->

<!-- Plugin js for this page-->
<script src="__CLOUD__/js/toastMsg.js"></script>
<script src="__LAYUI__/layui.js"></script>
<!-- End plugin js for this page-->

<!-- inject:js -->
<script src="__CLOUD__/js/template.js"></script>
<!-- endinject -->

<script>
    Date.prototype.Format = function(fmt)   
    { 
        //author: meizz   
        var o = {   
            "M+" : this.getMonth()+1,                 //月份   
            "d+" : this.getDate(),                    //日   
            "h+" : this.getHours(),                   //小时   
            "m+" : this.getMinutes(),                 //分   
            "s+" : this.getSeconds(),                 //秒   
            "q+" : Math.floor((this.getMonth()+3)/3), //季度   
            "S"  : this.getMilliseconds()             //毫秒   
        };   
        if(/(y+)/.test(fmt))   
            fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));   
        for(var k in o)   
            if(new RegExp("("+ k +")").test(fmt))   
        fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));   
        return fmt;   
    } 

    layui.use(['layer'], function(){
        var $ = layui.$
            ,layer = layui.layer;

        var blockIndex = 0;
        $.ajaxSetup({
            beforeSend: function () {
                blockIndex = layer.load(1,{shade: 0.6});
            },
            error:function(xhr,status,error){
                showToast({
                    code:0,
                    msg:"系统错误，请联系管理员。"
                });
            },
            complete: function () {
                layer.close(blockIndex);
            }
        });
    });
</script>

<!-- Custom js for this page-->
{block name="pagejs"}

{/block}
<!-- End custom js for this page-->

<script>
    var verBtn = $("#sendVerCode")
        ,countdown = 60; // 验证码限制时间

    //验证码
    $(document).on('click','#sendVerCode',function(){
        // layer.prompt({
        //     formType: 1
        //     ,title: '敏感操作，请验证口令'
        // }, function(value, index){
        //     console.log(value);
            //提交
            $.ajax({
                url:'{:url(\'index/Index/sendVerCode\')}',
                method:"POST",
                // data:{
                //     code:value
                // },
                success:function (res) {
                    checkCodeTimer(verBtn);
                    showToast(res);
                }
            });
        //     layer.close(index);
        // });
    });

    //验证码倒计时
    checkCodeTimer = function (obj) {

        if (countdown === 0) {
            obj.attr('disabled',false).html("发送");
            countdown = 60;
            return;
        } else {
            obj.attr('disabled',true).html(countdown + 's');
            countdown--;
        }
        setTimeout(function() {checkCodeTimer(obj) },1000)
    }

</script>
</body>

</html>
